const serviceCommon = require('../util/serviceCommon');
const serviceDao = require('../dao/serviceDao');

const service = {
    handleAddService: async (data) => {
        let result;
        result = await serviceCommon.addDataMethod(serviceDao, 'handleAddService', data);
        return result;
    },
    handleEditService: async (data) => {
        let result;
        result = await serviceCommon.editDataMethod(serviceDao, 'handleEditService', data);
        return result;
    },
    handleDeleteService: async (data) => {
        let result;
        result = await serviceCommon.deleteDataMethod(serviceDao, 'handleDeleteService', data);
        return result;
    },
    handleGetService: async () => {
        let result;
        result = await serviceCommon.getListMethod(serviceDao, 'handleGetService');
        return result;
    },
    handleGetServiceInfo: async (data) => {
        let result;
        result = await serviceCommon.getListMethod(serviceDao, 'handleGetServiceInfo', data);
        return result;
    }
};
module.exports = service;